function getLocalname(uri) {
	var hashIndex = uri.lastIndexOf("#");
	var ret = "";
	if (hashIndex > -1) {
		ret = uri.substring(hashIndex + 1);
	}
	if (ret == "") {
		var slashIndex = uri.lastIndexOf("/");
		if (slashIndex > -1) {
			ret = uri.substring(slashIndex + 1);
		}
	}
	if (ret == "") {
		ret = uri;
	}
	return ret;
}